//
// Created by Castle-Moriarty on 2025/10/31.
//

#include <iostream>
using namespace std;

int main() {
    // 百钱买百鸡
    int a,b,c;
    for (a = 0;a <= 19;a++) { // 公鸡的数量
        for (b = 0; b <= 33;b++) { // 母鸡的数量
            // 小鸡的数量
            c = 100 - a - b;
            if (a * 5 + b * 3 + c / 3 ==100 && c % 3 == 0) {
                cout << "Number of roosters:"<< a << " " << "Number of hens:"  << b << " " << "Number of chicks:" << c << endl;
            }
        }
    }
    return 0;
}